import request from '@/utils/request';

// 查询参数列表
export function listArrange (query) {
    return request({
        url: '/arrange/list',
        method: 'get',
        params: query
    })
}

export function saveArrange (data) {
    return request({
        url: '/arrange/save',
        method: 'post',
        data: data
    })
}

export function delArrange (data) {
    return request({
        url: '/arrange/'+data,
        method: 'post',
    })
}

export function download(url,data) {
	return request({
	  url: url,
	  method: 'post',//application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
	  header:{ 'Content-Type': 'application/x-www-form-urlencoded' },//
	  responseType: "arraybuffer",
	  params: data
	})
}